package com.cz.zslu.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.math.BigDecimal;

/**
 * <p>
 * 商品报价
 * </p>
 *
 * @author Bruce
 * @since 2019-06-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("product_quote")
public class ProductQuote extends SuperEntity<ProductQuote> {

    private static final long serialVersionUID = 1L;

    /**
     * 状态 0、正常 1、禁止
     */
    @ApiModelProperty("状态 0、正常 1、禁止")
    private Integer state = 0;


    /**
     * 报价者id
     */
    @ApiModelProperty("报价者id")
    @TableField("quoter_id")
    private Long quoterId;


    /**
     * 商品id
     */
    @ApiModelProperty("商品id")
    @TableField("commodity_id")
    private Long commondityId;


    /**
     * 商品名称
     */
    @ApiModelProperty("商品名称")
    @TableField("commodity_name")
    private String commodityName;

    /**
     * 报价价格
     */
    @ApiModelProperty("报价价格")
    @TableField("quote_price")
    private BigDecimal quotePrice;

    /**
     * 商品id
     */
    @ApiModelProperty("询价配件id")
    @TableField("product_inquiry_id")
    private Long productInquiryId;

    @ApiModelProperty("所报价的配件")
    @TableField(exist = false)
    private ProductInquiry productInquiry;


}
